package com.caigou.bean.cms.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SurveyFormConfig implements Serializable {
    private Integer id;

    private String formId;

    private Integer enableFormConfig;//1使用表单设置；0使用目录设置

    private Integer verifyType;//0登录验证；1无需登录验证

    private Integer enableInvite;

    private String inviteCode;

    private Integer fillRestriction;

    private Integer enableTimeRestriction;//表单填写时间限制，0不限制，1限制

    private Date startTime;

    private Date endTime;

    private String beforeStartTip;

    private String afterEndTip;

    private Integer enableVoteCount;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", formId=").append(formId);
        sb.append(", enableFormConfig=").append(enableFormConfig);
        sb.append(", verifyType=").append(verifyType);
        sb.append(", enableInvite=").append(enableInvite);
        sb.append(", inviteCode=").append(inviteCode);
        sb.append(", fillRestriction=").append(fillRestriction);
        sb.append(", enableTimeRestriction=").append(enableTimeRestriction);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", beforeStartTip=").append(beforeStartTip);
        sb.append(", afterEndTip=").append(afterEndTip);
        sb.append(", enableVoteCount=").append(enableVoteCount);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    private List<SurveyFormSharePlatform> surveyFormSharePlatformList;
}